/* Reckless RP homepage styling - scum-inspired neon / dark theme */
:root {
  color-scheme: dark;
  --bg: #070707;
  --surface: #101010;
  --panel: rgba(10, 10, 10, 0.88);
  --accent: #2ce72c;
  --accent-strong: #47ff47;
  --text: #e8e8e8;
  --muted: #a0a0a0;
  --danger: #c52c2c;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(46, 255, 46, 0.12), transparent 20%),
              linear-gradient(180deg, #080808 0%, #0f0f0f 45%, #070707 100%);
}

body {
  overflow-x: hidden;

  
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cpath fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1" d="M0 0L100 100M100 0L0 100"/%3E%3C/svg%3E');
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;

}
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background: url("../img/bg\ reckless.png") center center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Chrome, Edge, Opera */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #2ce72c47;
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: #47ff47;
}

::selection {
  background: #2ce72c;
  color: #000000;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-brand img {
  width: 54px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.site-brand .brand-text {
  display: grid;
  line-height: 1;
}

.site-brand .brand-text strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  text-transform: uppercase;
}

.site-brand .brand-text span {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a,
.hero-cta a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.hero-cta a:hover {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 42px 0 16px;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy p.tagline {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 4vw + 1rem, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #f4f4f4;
  text-shadow: 0 0 30px rgba(46, 255, 46, 0.18);
}

.hero-copy p.lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d8d8d8;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta .button,
.join-now .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46,255,46,0.22), rgba(46,255,46,0.12));
  color: #fff;
  border: 1px solid rgba(46,255,46,0.35);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  backdrop-filter: blur(5px);
}

.hero-cta .button.primary {
  background: radial-gradient(circle at top left, rgba(46,255,46,0.32), transparent 40%),
              linear-gradient(135deg, rgba(46,255,46,0.3), rgba(10,10,10,0.84));
}

.hero-cta .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(46,255,46,0.12);
}

.hero-visual {
  position: relative;
  min-height: 200px; /* reduced to remove excess vertical space */
  border-radius: 32px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 90px rgba(0,0,0,0.55);
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 8%; /* bring gradient down so image area appears fuller */
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.42) 36%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-visual .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* focus top portion of banner to remove empty lower area */
  mix-blend-mode: normal;
}

.hero-visual .hero-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(46,255,46,0.12);
  pointer-events: none;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 16px;
}

.card {
  background: rgba(20,20,20,0.82);
  border-radius: var(--radius);
  border: 3px solid rgba(46, 255, 46, 0.164);
  padding: 24px;
  position: relative;
  overflow: visible; /* allow glow to escape */
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, border-color 180ms ease;

  margin-bottom: 15px
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(46, 255, 46, 0), transparent 25%);
  opacity: 0.5;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -8px;
  bottom: -8px;
  border-radius: calc(var(--radius) + 8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 0 24px rgba(46,255,46,0.28),
              0 0 48px rgba(46,255,46,0.18),
              0 0 96px rgba(46,255,46,0.12);
  will-change: opacity, transform;
  mix-blend-mode: screen;
  z-index: 1;
  clip-path: polygon(35% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 35%);
}

.card h2,
.card p {
  position: relative;
  z-index: 1;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.card:hover {
  background: rgba(20,20,20,0.92);
  border-color: rgba(46,255,46,0.18);
  transform: translateY(-10px);
  z-index: 3;
  box-shadow: 0 0 24px rgba(46,255,46,0.28), 0 0 24px rgba(46,255,46,0.28), 0 0 24px rgba(46,255,46,0.28);
}

.join-now {
  background: rgba(10,10,10,0.94);
  border: 1px solid rgba(46,255,46,0.14);
  border-radius: 32px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.join-now .copy {
  max-width: 720px;
}

.join-now strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.join-now a {
  text-decoration: none;
}
.join-now a:hover {
 box-shadow: 0 0 32px rgba(46, 255, 46, 0.505);
 transform: translateY(-2px);
}

footer {
  margin-top: 44px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0);
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
}

/* footer span {
  margin-left: 30%
} */

.glow-text {
  display: inline-block;
  color: var(--accent-strong);
  text-shadow: 0 0 24px rgba(46,255,46,0.35);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .join-now {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .page-shell {
    padding: 14px 16px 32px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 8vw, 4.1rem);
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }
}

.rule-header{
  display:flex;
  justify-content:space-between;
  align-items:center;

  width:100%;
  cursor:pointer;

  font-size:1.25rem;
  font-weight:600;
  color:white;
}

.arrow{
  font-size:1.3rem;
  transition:transform .3s ease;
}

.collapsible.open .arrow{
  transform:rotate(180deg);
  color:var(--accent-strong);
}

/* .collapsible-content{
  max-height:0;
  overflow:hidden;
  transition:max-height .2s ease-in-out;
  
} */


.collapsible-content{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}

.collapsible-content > * {
  overflow: hidden;
}

.collapsible.open .collapsible-content{
  grid-template-rows: 1fr;
}



/* .collapsible.open .collapsible-content{
  max-height:300px;
  margin-top:15px;
} */
.collapsible.open {
  box-shadow:0 0 12px var(--accent-strong);
}

.search-container {
  position: relative;
  margin-bottom: 25px;
}

#searchInput {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 0px solid var(--accent-strong);
  background-color: #232323;
  color: var(--accent-strong);
}
#searchInput:focus {
  outline: none;
}

#suggestions {
  position: absolute;
  width: 100%;
  background: #151515;
  border-radius: 12px;
  margin-top: 5px;
  overflow: hidden;
  z-index: 100;
}

.suggestion {
  padding: 12px;
  cursor: pointer;
}

.suggestion:hover {
  background: rgba(46, 255, 46, 0.12);
}

.suggestion {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
}

.suggestion-title {
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 4px;
}

.suggestion-match {
    font-size: .85rem;
    color: #aaa;
    margin-bottom: 4px;
}

.suggestion-snippet {
    font-size: .9rem;
    color: white;
    line-height: 1.4;
}

.suggestion mark {
    background: rgba(46,255,46,.3);
    color: white;
    padding: 1px 3px;
    border-radius: 4px;
}